<div class="box-body">
    <form class="layui-form" action="{:url('/wms/spec/save')}" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">分类名</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="参考列表"  name="name_ch" {if isset($spec)}value="{$spec.name_ch}"{/if}  class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">类别</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="参考列表"  name="type" {if isset($spec)}value="{$spec.type}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">属性</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="参考列表"  name="name" {if isset($spec)}value="{$spec.name}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">值</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="参考列表"  name="value" {if isset($spec)}value="{$spec.value}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" autocomplete="off" placeholder="排序"  name="sort" {if isset($spec)}value="{$spec.sort}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="checkbox" name="status" value="1" {if !isset($spec) || (isset($spec) && $spec.status=='1')}checked{/if} lay-skin="switch">
            </div>
        </div>
        {if isset($spec)}
        <input type="hidden" name="spec_id" value="{$spec.spec_id}">
        {/if}
    </form>
</div>